package com.sxxm.qxgl.controller;


import com.sxxm.qxgl.entity.UserMenu;
import com.sxxm.qxgl.entity.UserRole;
import com.sxxm.qxgl.service.UserMenuService;
import com.sxxm.qxgl.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author qjw
 * @since 2021-09-22
 */
@RestController
@Api(value = "角色-用户", tags = "角色-用户")
@RequestMapping("/user-menu")
public class UserMenuController {
    UserMenuService userMenuService;
    public UserMenuController(UserMenuService userMenuService){
        this.userMenuService = userMenuService;
    }

    @ApiOperation("用户id 查询菜单")
    @PostMapping("/Delete")
    public Result cx(@RequestBody UserMenu userMenu){
        return userMenuService.cx(userMenu);
    }



}

